<?php
/**
 * 配置文件
 */
$config = array(
    
    //路由
    '_urls' => array(
	    '/^$/' => array(
	        'controller' => 'IndexController',
	        'action' => 'indexAction'
	    ),
        
	    '/^main$/' => array(
            'controller' => 'IndexController',
            'action' => 'mainAction'
        ),
    ),
    
    //数据库配置
    '_db' => array(
        'adapter' => 'Mysql',
        'params' => array(
            'host' => '10.10.90.144',
            'port' => 3306,
            'user' => 'admin',
            'password' => 'adminpa$$w0rd',
            'database' => 'guoce',
            'charset' => 'utf8',
            'persitent' => true
        )
    ),
	
    
    //memcache配置
//     '_cache' => array(
//         'adapter' => 'memcache',
//         'params' => array(
//         	'servers' => array(
//                 array(
// 					'host' => '115.182.93.43',
// 		            'port' => 10006,
// 		            'ttl' => 7200,       //过期时间
// 		            'persitent' => true
//                 )
//            )
//         )
//     ),
    
	//定义模块Key,用户存放保证guoce_comm_data表的数据唯一性
	'_modules' => array(
		'notice' => 'guoce_index_notice',//通知
		'trends' => 'guoce_index_trends',//最新动态
		'focus_img' => 'guoce_index_focus_img',//焦点图
	),
	
    '_cookieDomain'      => '.guoce.com', //COOKIE域
    '_modelsHome'        => 'models',
    '_controllersHome'   => 'controllers',
    '_viewsHome'         => 'views',
    '_widgetsHome'       => 'widgets'
);
